﻿using Basic.FlowGatewayModule.Interface;
using Basic.FlowRemoteModel.FlowAppMsg;
using Basic.FlowRemoteModel.FlowAppMsg.Model;

namespace Basic.FlowGatewayModule.lmpl
{
    internal class FlowAppMsgService : IFlowAppMsgService
    {
        public FlowAppMsgDto[] Gets ( long appId )
        {
            return new GetFlowAppMsg
            {
                AppId = appId
            }.Send();
        }
        public void Set ( long appId, long formId, FlowAppMsgAdd[] adds )
        {
            new SetFlowAppMsg
            {
                AppId = appId,
                Datum = adds,
                FormId = formId
            }.Send();
        }
    }
}
